package com.jkoss.wine.customer.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;


/**
 * 
 * 
 * @Author Jason
 * @Version 1.0, 2019-08-20
 * @See
 * @Since com.jkoss.wine.customer.entity
 * @Description: TODO
 */
@TableName("product_inventory")
public class ProductInventory extends Model<ProductInventory> {

    private static final long serialVersionUID = 1L;

    @TableId("product_inventory_id")
    private String productInventoryId;
    @TableField("product_id")
    private String productId;
    @TableField("product_norm_id")
    private String productNormId;
    @TableField("inventory")
    private Integer inventory;
    @TableField("shop_id")
    private String shopId;
    /**
     * 入库单号
     */
    @TableField("inventory_num")
    private String inventoryNum;
    /**
     * 类型 0:单号入库 ，1:线下出售，2：线上出售，3：手动入库  4：分店自动录入 5：总店自动录入
     */
    @TableField("type")
    private Integer type;
    @TableField("basket_id")
    private String basketId;
    @TableField("operator")
    private String operator;
    @TableField("add_time")
    private Date addTime;
    @TableField("remark")
    private String remark;


    public String getProductInventoryId() {
        return productInventoryId;
    }

    public void setProductInventoryId(String productInventoryId) {
        this.productInventoryId = productInventoryId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductNormId() {
        return productNormId;
    }

    public void setProductNormId(String productNormId) {
        this.productNormId = productNormId;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getInventoryNum() {
        return inventoryNum;
    }

    public void setInventoryNum(String inventoryNum) {
        this.inventoryNum = inventoryNum;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getBasketId() {
        return basketId;
    }

    public void setBasketId(String basketId) {
        this.basketId = basketId;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.productInventoryId;
    }

    @Override
    public String toString() {
        return "ProductInventory{" +
        ", productInventoryId=" + productInventoryId +
        ", productId=" + productId +
        ", productNormId=" + productNormId +
        ", inventory=" + inventory +
        ", shopId=" + shopId +
        ", inventoryNum=" + inventoryNum +
        ", type=" + type +
        ", basketId=" + basketId +
        ", operator=" + operator +
        ", addTime=" + addTime +
        ", remark=" + remark +
        "}";
    }
}
